package com.fastloan.mgt.processcontrol.base.model;

import java.util.Map;

/**
 * 流程对应主体
 *
 * @author yanwe
 * createTime 2017-11-2017/11/9 16:12
 */
public class Process {

    private String processId;

    private String bpmId;

    public String getProcessId() {
        return processId;
    }

    public void setProcessId(String processId) {
        this.processId = processId;
    }

    public String getBpmId() {
        return bpmId;
    }

    public void setBpmId(String bpmId) {
        this.bpmId = bpmId;
    }

    public static final class ProcessBuilder {
        private String processId;
        private String bpmId;

        private ProcessBuilder() {
        }

        public static ProcessBuilder aProcess() {
            return new ProcessBuilder();
        }

        public ProcessBuilder withProcessId(String processId) {
            this.processId = processId;
            return this;
        }

        public ProcessBuilder withBpmId(String bpmId) {
            this.bpmId = bpmId;
            return this;
        }

        public Process build() {
            Process process = new Process();
            process.setProcessId(processId);
            process.setBpmId(bpmId);
            return process;
        }
    }
}
